﻿@using Chaine
@model Chaine.Models.EventModels
@{
    ViewBag.Title = "Delete " + Model.Title;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section maincontent{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    @using (Html.BeginForm())
    {
        @Html.HiddenFor(m => m.Id)
        <div class="form-horizontal">
            <fieldset>
                <legend>@ViewBag.Title</legend>
                <div class="control-group">
                    <label class="control-label">
                        Title</label>
                    <div class="controls">
                        @Html.DisplayFor(m => m.Title)
                        
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Location</label>
                    <div class="controls">
                        @Html.DisplayFor(m => m.Location)
                        
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Start DateTime</label>
                    <div class="controls">
                        @Model.StartDateTime.ToString("MM'/'dd'/'yyyy HH:mm")
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        End DateTime</label>
                    <div class="controls">
                        @Model.EndDateTime.ToString("MM'/'dd'/'yyyy HH:mm")
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">
                        Poster</label>
                    <div class="controls">
                        @if (!string.IsNullOrEmpty(Model.Poster))
                        {
                            <img src="@Url.Content("~/poster/" + Model.Poster)" alt="" />
                            <br />
                        }
                        
                    </div>
                </div>
                <div class="form-actions">
                    <input type="submit" value="Delete" class="btn btn-danger btn-large" />
                    @Html.ActionLink("Cancel", "index", "AdminEvent", null, new { @class = "btn btn-large" })
                </div>
            </fieldset>
        </div>
    }
}
@section sidebar{
    @Html.Partial("~/views/shared/_adminsidebar.cshtml")
}
